<?php
namespace app\controller;

use think\App;
use think\facade\Db;
use think\Request;
use think\facade\View;
use think\exception\ValidateException;
use think\facade\Session;

/**
 *AAD注销登录
 */
class Sls
{


    /**
     * Request实例
     * @var \think\Request
     */
    protected $request;


    /**
     * 构造方法
     * @access public
     * @param  App  $app  应用对象
     */
    public function __construct(App $app)
    {
        $this->app     = $app;
        $this->request = $this->app->request;
    }



    public function index()
    {
        $auth = new \OneLogin\Saml2\Auth();

        $keepLocalSession = False;
        $auth->processSLO($keepLocalSession, null);

        return redirect((string)url('Login/index'))->send();exit;
    }
}